package com.lhkj.ct.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * <p>
 *     全局成功状态
 * </p>
 */
public enum  SuccessEnum implements IBaseEnum<Integer, String>{

    SUCCESS(0, "成功"),
    FAIL(1, "失败");

    @EnumValue
    private final int code;

    private final String label;

    SuccessEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String getLabel() {
        return label;
    }
}
